package com.vhall.component.entity.subject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 专题绑定房间记录表
 *
 * @author jian.yang
 */
@Data
@TableName("subject_room")
public class SubjectRoomEntity implements Serializable {

    private static final long serialVersionUID = 8064884680402567298L;
    /**
     * 主键
     */
    @JsonProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * pass房间id
     */
    @TableField("room_id")
    @JsonProperty(value = "room_id")
    private String roomId;

    /**
     * 专题ID
     */
    @TableField("subject_id")
    @JsonProperty(value = "subject_id")
    private Integer subjectId;

    /**
     * 排序字段
     */
    @TableField("sort")
    @JsonProperty(value = "sort")
    private Integer sort;

    /**
     * 绑定状态： 1--绑定, 2--解除
     */
    @TableField("bind_status")
    @JsonProperty(value = "bind_status")
    private Integer bindStatus;

    /**
     * 创建时间
     */
    @TableField("created_at")
    @JsonProperty(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    @JsonProperty(value = "updated_at")
    private LocalDateTime updatedAt;

    /**
     * 删除时间
     */
    @TableField("deleted_at")
    @JsonProperty(value = "deleted_at")
    private LocalDateTime deletedAt;
}
